Code instructions:

*We have two codes for our project, first one simulate the image formation using light field camera
and the second one simulate the image formation using normal camera
*Light field camera simulation: lightfield.m
*Normal camera simulation: normalcamera.m
*Zemax simulation: Eye_Retinal Object.ZAR

In order to run
1. Place Eny angle.txt and Fundus.jpg under the same folder as .m file
2. run .m file 

Note: 
1. The light field code will take about 1~2 hours using a power mac, windows pc may take much longer
2. Normal camera will take about 0.5~1 hour using a power mac
3. matrix will be close to 1.5G after finish
4. All plots will generate automatically after completation

